<?php
class Common_PagerHelper extends Apm_Helper_Base
{
    public function getPagingNaviHtml($action, $total_count, $current_page, $per_page, $range, $paging_params)
    {
        $this->_template_file_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pager_helper.tpl';

        if (isset($paging_params['page'])){
            unset($paging_params['page']);
        }
        $paging_info = array();
        $paging_info = Apm_Util::generatePager($total_count, $current_page, $per_page, $range);
        $paging_info['action'] = $action;
        $paging_info['hiddenTag'] = Apm_Util::generateHiddenTag($paging_params);
        return $this->fetch($paging_info);
    }

}
?>
